import { chromeRequest } from "@/request/request.js";

// 登录方法
export function login(username, password) {
  const data = {
    username,
    password,
  };
  return chromeRequest({
    url: "/login",
    headers: {},
    method: "post",
    data: data,
  });
}

// 获取验证码
export function getCodeImg() {
  return chromeRequest({
    url: "/captchaImage",
    headers: {},
    method: "get",
    timeout: 20000,
  });
}
